package com.zimin.cloud.wiki.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zimin.mapper.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 分类
 * </p>
 *
 * @author zimin
 * @since 2021-10-27 21:02
 */
@Getter
@Setter
@TableName("wiki_category")
@ApiModel(value = "Category对象", description = "分类")
public class Category extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("父id")
    @TableField("parent")
    private String parent;

    @ApiModelProperty("名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("顺序")
    @TableField("sort")
    private Integer sort;


}
